projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
890617c
)
(magic-fallback-mode-alist): Add ZIP magic number
author
Juri Linkov
<juri@jurta.org>
Fri, 28 Aug 2009 23:48:46 +0000
(23:48 +0000)
committer
Juri Linkov
<juri@jurta.org>
Fri, 28 Aug 2009 23:48:46 +0000
(23:48 +0000)
associated with `archive-mode'.
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index 2c695c1d4bd082b6c27bb4d45e0b44d31b20d9c1..a23408a0bebb15a576b59575be8cf9cb723226ca 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-2402,6
+2402,7
@@
If FUNCTION is nil, then it is not called. (That is a way of saying
(defvar magic-fallback-mode-alist
`((image-type-auto-detected-p . image-mode)
+ ("\\(PK00\\)?[P]K\003\004" . archive-mode) ; zip
;; The < comes before the groups (but the first) to reduce backtracking.
;; TODO: UTF-16 <?xml may be preceded by a BOM 0xff 0xfe or 0xfe 0xff.
;; We use [ \t\r\n] instead of `\\s ' to make regex overflow less likely.